<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    
    <style>
        .one
        {
            height: 40px;
            border-top: 3px solid  #ff8500;
            border-bottom: 1px solid #edeef0;
        }

        a
        {
             height: 40px;
             /* width: 80px; */
             
            padding:  0 16px;
            /* 左右留白自动调节 */


             display:inline-block;
            
             text-decoration: none;
             /* 已经居中 */

             text-align: center;

             line-height: 40px;
             font-size: 12px;
            
             color: #4c4c4c;

        }
        /* weil */
        a:hover
        {
            background-color: #edeef0;
            color: #ff8400;
        }

    </style>

</head>
<body>
    <div class="one"> 
        <a href="#">新浪导航dddd</a>
        <a href="#">新浪导航</a>
        <a href="#">新浪导航</a>
        <a href="#">新浪导航</a>
        <class="one teo"> 
            <a href="#">新浪导航</a>
            <a href="#">新浪导航</a>
            <a href="#">新浪导航</a></class=>
    </div>
</body>
</html>